import { createApp } from "vue";
import App from "./App.vue";
import router from "./router";
import store from "./stores";
import i18n from "./locales";
import ElementPlus from 'element-plus'
import "@/styles/index.scss"
import * as ElementPlusIconsVue from '@element-plus/icons-vue'
import moment from "moment";
import "@/iconfont/iconfont.css"

import 'moment/dist/locale/zh-cn'

moment.locale('zh-cn') //中文化


const app = createApp(App)
app.config.globalProperties.$moment = moment;

for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
  app.component(key, component)
}

app.use(i18n).use(ElementPlus).use(store).use(router).mount("#app");